import axios from '@/libs/api.request'

export class SalaryPayableBillApi {
  // 获取客户薪资应付账单
  static getList (params) {
    return axios.request({
      url: '/SalaryPayableBill/GetList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 获取明细数据
  static getDetailList (params) {
    return axios.request({
      url: '/SalaryPayableBill/GetDetailList',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出薪资应付账单
  static export (params) {
    return axios.request({
      url: '/SalaryPayableBill/Export',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出实付单-U8
  static exportPayment (params) {
    return axios.request({
      url: '/SalaryPayableBill/ExportPayment',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出薪资应付账单明细
  static exportDetail (params) {
    return axios.request({
      url: '/SalaryPayableBill/ExportDetail',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 校验并获取当前个税总额
  static checkToConfirmPay (params) {
    return axios.request({
      url: '/SalaryPayableBill/CheckToConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 个税付款确认
  static toConfirmPay (params) {
    return axios.request({
      url: '/SalaryPayableBill/ToConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 校验并获取当前工资总额
  static checkConfirmPay (params) {
    return axios.request({
      url: '/SalaryPayableBill/CheckConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 工资付款确认
  static confirmPay (params) {
    return axios.request({
      url: '/SalaryPayableBill/ConfirmPay',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出付款单-实付
  static exportPayment (params) {
    return axios.request({
      url: '/SalaryPayableBill/ExportPayment',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 导出付款申请单
  static exportPayPDF (params) {
    return axios.request({
      url: '/SalaryPayableBill/ExportPayPDF',
      method: 'post',
      enctype: 'multipart/form-data',
      data: params
    })
  }

  // 申请删除
  static deletePayApply (params) {
    return axios.request({
      url: '/SalaryPayableBill/DeletePayApply',
      method: 'delete',
      enctype: 'multipart/form-data',
      params: params
    })
  }
}
